package com.lcq.gulimall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lcq.common.to.OrderTo;
import com.lcq.common.to.SecKillOrderTo;
import com.lcq.common.utils.PageUtils;
import com.lcq.gulimall.order.entity.OrderEntity;
import com.lcq.gulimall.order.vo.OrderConfirmVo;
import com.lcq.gulimall.order.vo.OrderSubmitVo;
import com.lcq.gulimall.order.vo.SubmitOrderResponseVo;

import java.util.Map;

/**
 * 订单
 *
 * @author lichuanqi
 * @email lichuanqi0086@163.com
 * @date 2021-02-21 15:32:26
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    OrderConfirmVo getOrderConfirmInfo();

    SubmitOrderResponseVo submit(OrderSubmitVo submitVo);

    OrderEntity getOrderBySn(String orderSn);

    void cancelOrder(OrderTo orderTo);

    void createSecKillOrder(SecKillOrderTo secKillOrderTo);
}

